package com.pingsky.apm.agent.core;

public enum AgentId {
    INSTANCE;

    public final static String AGENT_ID_KEY = "pingsky.agentId";
    public final static String APPLICATION_NAME_KEY = "pingsky.applicationName";

    private String agentId;
    private String applicationName;

    private AgentId() {
        this.agentId = System.getProperty(AGENT_ID_KEY);
        this.applicationName = System.getProperty(APPLICATION_NAME_KEY);
    }

    public String getAgentId() {
        return agentId;
    }

    public String getApplicationName() {
        return applicationName;
    }

    @Override
    public String toString() {
        return "AgentId{" +
                "agentId='" + agentId + '\'' +
                ", applicationName='" + applicationName + '\'' +
                '}';
    }
}
